
using System;
using System.ComponentModel.DataAnnotations;
using Abp.Auditing;
using Abp.Domain.Entities.Auditing;
using Yozeev.BusinessLogic;

namespace  Yozeev.BusinessLogic.Dtos
{
    public class CustomerEditDto
    {

        /// <summary>
        /// Id
        /// </summary>
        public Guid? Id { get; set; }         


        
		/// <summary>
		/// CustomerName
		/// </summary>
		[Required(ErrorMessage="CustomerName不能为空")]
		public string CustomerName { get; set; }



		/// <summary>
		/// Mobile
		/// </summary>
		[Required(ErrorMessage="Mobile不能为空")]
		public string Mobile { get; set; }



		/// <summary>
		/// LoginPwd
		/// </summary>
		[DisableAuditing]
		public string LoginPwd { get; set; }



		/// <summary>
		/// Sex
		/// </summary>
		public SexEnum Sex { get; set; }



		/// <summary>
		/// Country
		/// </summary>
		public string Country { get; set; }



		/// <summary>
		/// Province
		/// </summary>
		public string Province { get; set; }



		/// <summary>
		/// City
		/// </summary>
		public string City { get; set; }



		/// <summary>
		/// County
		/// </summary>
		public string County { get; set; }



		/// <summary>
		/// CertificatesNum
		/// </summary>
		[Required(ErrorMessage="CertificatesNum不能为空")]
		public string CertificatesNum { get; set; }



		/// <summary>
		/// VerifiableType
		/// </summary>
		[Required(ErrorMessage="VerifiableType不能为空")]
		public VerifiableTypeEnum VerifiableType { get; set; }



		/// <summary>
		/// Job
		/// </summary>
		public string Job { get; set; }



		/// <summary>
		/// OpenID
		/// </summary>
		public string OpenID { get; set; }



		/// <summary>
		/// Photo
		/// </summary>
		public string Photo { get; set; }



		/// <summary>
		/// DateOfBirth
		/// </summary>
		public DateTime? DateOfBirth { get; set; }




        public string DateOfBirthStr { get; set; }

        public void SetTime()
        {
            if (!string.IsNullOrWhiteSpace(DateOfBirthStr))
                DateOfBirth = DateTime.Parse(DateOfBirthStr);
        }
    }
}